package com.chennan.common.domian;

/**
 * @ClassName PageSortEnum
 * @Author kalmouse
 * @Description
 * @Date 2020/11/26
 **/
public enum PageSortEnum {
    /**
     * 分页id顺序
     */
    ASC(0,"正序"),
    DESC(1,"倒序");

    /**
     * value值，存入数据库值
     */
    private int code;

    /**
     * 文本
     */
    private String text;

    PageSortEnum(int code, String text) {
        this.code = code;
        this.text = text;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
